﻿using System.Web.ModelBinding;

namespace Morus.Presentation
{
    public sealed class ViewStateValueProviderFactory : ValueProviderFactory
    {
        public override IValueProvider GetValueProvider(ModelBindingExecutionContext modelBindingExecutionContext)
        {
            Check.Argument.IsNotNull(modelBindingExecutionContext, "modelBindingExecutionContext");

            return new ViewStateValueProvider(modelBindingExecutionContext);
        }
    }
}
